import request, { AxiosResponse } from "@/utils/request";

const login = (params: { username: string, password: string }): Promise<AxiosResponse<any>> => {
  return request({
    method: 'post',
    url: 'api/user/login',
    data: {
      username: params.username,
      password: params.password
    }
  });
};

export {
  login
};